import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

export default [
  {
    languageOptions: {
      globals: globals.browser,
      parserOptions: {
        parser: "@typescript-eslint/parser",
      },
    },
  },
  pluginJs.configs.recommended,
  ...tseslint.configs.recommended,
  {
    ignores: [
      "dist",
      "example/*",
      "node_modules",
      "src/core/Assets/*",
      "src/core/Libs/*",
      "public/*",
      "server",
    ],
  },
  {
    rules: {
      "@typescript-eslint/no-unused-vars": "error",
      "vue/multi-word-component-names": "off",
      "no-var": "error",
    },
  },
];
